package com.example.mybatisdemo1.service;

import com.example.mybatisdemo1.entity.UserInfo;
import com.example.mybatisdemo1.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author hyacinth
 * @date 2023/5/11
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public UserInfo getUserById(Integer id){
        return userMapper.getUserById(id);
    }
}
